package com.xinqi.modules.course.comment.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.course.comment.domain.CommentEntity;
import com.xinqi.modules.course.comment.dto.req.CommentCreateDTO;
import com.xinqi.modules.course.comment.dto.req.CommentReplyDTO;
import com.xinqi.modules.course.comment.dto.rsp.CommentResultDTO;
import org.mapstruct.Mapper;

/**
 * 课程栏目评论表转换
 *
 * @author: yyzhen
 * @date: 2023/03/20
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CommentConvert {
    public abstract CommentEntity create(CommentCreateDTO s);

    public abstract CommentEntity reply(CommentReplyDTO s);

    public abstract CommentResultDTO convert(CommentEntity s);
}
